﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Automobile.service.Model;
using Automobile.service.BLL;
using System.Data;
namespace Automobile.service.UI
{
    /// <summary>
    /// HandlerDocument_Pro 的摘要说明
    /// </summary>
    public class HandlerDocument_Pro : IHttpHandler
    {
        DocumentBLL bll = new DocumentBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string Document_Type_Name = context.Request["Document_Type_Name"].ToString();
            List<Document_Mate> list = bll.Document_Show_Pro(Document_Type_Name);
            context.Response.Write(new System.Web.Script.Serialization.JavaScriptSerializer { MaxJsonLength = Int32.MaxValue }.Serialize(list));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}